<html>
<head><meta charset="utf-8"><title>VSCode multi-root workspaces · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/VSCode.20multi-root.20workspaces.html">VSCode multi-root workspaces</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197185606"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/VSCode%20multi-root%20workspaces/near/197185606" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cole Lawrence <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/VSCode.20multi-root.20workspaces.html#197185606">(May 11 2020 at 18:28)</a>:</h4>
<p>I was wondering if anyone is successfully using multi-root workspaces where their workspace folders are not at the crate root folder...</p>
<p>I basically have the following folders opened as a VSCode workspace:</p>
<ul>
<li>/crateRoot/web/webCrate</li>
<li>/crateRoot/commonCrate</li>
</ul>
<p>I focused on only opening these few folders so I can focus on the relevant code and not the excess crates and such. Everything works very well in that regard, but this means that I can't use terminal links during cargo build / check / run / etc because they all print out as <code>web/webCrate/src/lib.rs</code> which none of my terminals would be able to resolve... I opened <a href="https://github.com/microsoft/vscode/issues/97528">an issue on VSCode</a> without much luck</p>
<p>NOTE:  <code>crateRoot</code> is my "Cargo Workspace Root"</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>